package com.pf.责任链模式.spring.demo1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Client {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext("com.pf.责任链模式.spring.demo1");
        Context context = applicationContext.getBean(Context.class);
        LeaveRequest leaveRequest = new LeaveRequest("张三", 21, "事假");
        context.handleRequest(leaveRequest);
    }
}
